﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="internetsales._Default" %>

   
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">

    <style type="text/css">
        .style1
        {
            height: 576px;
        }
        .style3
        {
            height: 576px;
            width: 254px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    
    <ContentTemplate>
    
    <h2>
        &nbsp;</h2>
<table>
<tr><td>
<table>
<tr>
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">First Name:
<br /><asp:TextBox ID="CustFirstName" runat="server"></asp:TextBox></td>

<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">Last Name:<br /><asp:TextBox 
        ID="CustLastName" runat="server"></asp:TextBox></td>
        
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">User Name:<br />
    <asp:TextBox 
        ID="CustUserName" runat="server"></asp:TextBox></td>
        
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">Email:<br />
    <asp:TextBox 
        ID="CustEmail" runat="server"></asp:TextBox></td>
</tr>
<tr>
       
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">Phone:<br />
    <asp:TextBox 
        ID="CustPhone" runat="server"></asp:TextBox></td>
       
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">&nbsp;Cell Phone:<br />
    <asp:TextBox 
        ID="CustCellPhone" runat="server"></asp:TextBox></td>
      
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">Street:<br /><asp:TextBox 
        ID="CustStreet" runat="server"></asp:TextBox></td>
      
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">City:<br /><asp:TextBox 
        ID="CustCity" runat="server"></asp:TextBox></td>
</tr>
<tr>
       
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">State:<br /><asp:TextBox 
        ID="CustState" runat="server"></asp:TextBox></td>
       
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">Zip:<br /><asp:TextBox 
        ID="CustZip" runat="server"></asp:TextBox></td>

<td style="text-align:center;font-weight:bold;font-size:18px;color:Green">Domain Names:<br />
    <asp:DropDownList 
        ID="CustDomains" runat="server" AutoPostBack="True" 
        DataSourceID="CustDomainsDDLObjectDataSource" DataTextField="DomainName" 
        DataValueField="UID" AppendDataBoundItems=true><asp:ListItem></asp:ListItem></asp:DropDownList>
    <asp:ObjectDataSource ID="CustDomainsDDLObjectDataSource" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="GetDataByCustomerID" 
        TypeName="internetsales.CustomerDataSetTableAdapters.LocationsTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="lblCustID" Name="CustomerID" 
                PropertyName="Text" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    </td>

<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">Notes:<br /><asp:TextBox 
        ID="CustNotes" runat="server"></asp:TextBox></td>

</tr>

</table>
</td>
<td>
<table>
<tr>
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red">
    <asp:Label ID="lblDomainName" runat="server" Text="Domain Name:"></asp:Label>
    <br /><asp:TextBox 
        ID="txtDomainName" runat="server"></asp:TextBox></td>
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red"><br /><asp:Button 
        ID="btnLoadCust" Text="Load Customer" runat="server"></asp:Button></td>
</tr>
<tr>
<td style="text-align:center;font-weight:bold;font-size:18px;color:Red"><asp:Button 
        ID="btnSaveCust" Text="Save/Update Customer" runat="server"></asp:Button>
        <asp:Button 
        ID="ButtonAddNewDomain" Text="Add New Domain" runat="server"></asp:Button>
    
    <br />
    </td>
</tr>
    <asp:Label ID="lblCustID" runat="server"></asp:Label>
</table>
    <asp:Button ID="btnClear" runat="server" Text="Clear Everything!" />
</td>
</tr>
</table>

        <asp:Panel ID="PanelLocation" runat="server" Visible=false>
        
    <div align="center">
 
<div style="width:870px;height:auto">
    
   
    
<div style="margin-top:10px;float:left">
        
<div style="text-align:left;font-size:30px;font-weight:bold;margin-top:10px">Computer Repair 
    Business 
    <asp:TextBox 
        ID="txtTitle" runat="server" Width="400px"></asp:TextBox><br>
</div>
 

        
                    
  
          </div>
    
<div style="background:rgb(127,115,77);padding:10px;width:850px;height:395px; float:left">
<table>
<tbody>
<tr>
<td>
<div style="display:block;text-align:left">
<asp:Image ID="ImageMain" runat="server"  Width=410px Height=310px 
        AlternateText="No image available for this domain." BorderColor="White" 
        ForeColor="Black"/>
<%--<a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/computer_repair_palm_coast.jpg?attredirects=0" imageanchor="1"><img alt="Computer Repair Expert" src="https://sites.google.com/site/computerrepairpalmcoastfl/home/computer_repair_palm_coast.jpg" border="0"/></a>--%>

</div>

</td>
<td>        
         
<div style="text-align:center;color:rgb(0,0,0);background-color:rgb(255,255,255)"><b>
    <font size="3">386-385-4442<asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
    </font></b></div>
    <asp:Label ID="lbllocationUID" runat="server"></asp:Label>
<br>
<br>
<table style="width:420px">
<tbody>
<tr>
    <td colspan=2 >
        <asp:GridView ID="GridViewReasons" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
            CellPadding="4" DataKeyNames="ID" DataSourceID="ReasonsObjectDataSource" 
            ForeColor="Black" GridLines="Vertical" AllowPaging="True" 
            EmptyDataText="No reasons recorded" Width=100%>
            <AlternatingRowStyle BackColor="White" />
            <Columns>                
                
                <asp:TemplateField HeaderText="Reason" SortExpression="Reason1">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Reason1") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Reason1") %>'></asp:Label>
                    </ItemTemplate>
                    <FooterTemplate>
                            <asp:TextBox ID="txtReason" runat="Server"></asp:TextBox>
                            <asp:Button ID="btnInsertReason" runat="Server" Text="Insert" CommandName="Insert" UseSubmitBehavior="False" />
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            </Columns>

            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
            <EmptyDataTemplate>
               Add new Reason <asp:TextBox ID="txtReason" runat="Server"></asp:TextBox>   
                <asp:Button ID="btnInsert" runat="Server" Text="Insert" CommandName="EmptyInsert" UseSubmitBehavior="False" />
            </EmptyDataTemplate>
        </asp:GridView>
        <p style="text-align:right;"><asp:Button ID="btnAddReason" runat="Server" Text="Add New Reason" /></p>
        <asp:ObjectDataSource ID="ReasonsObjectDataSource" runat="server" 
            DeleteMethod="Delete" InsertMethod="InsertReason" 
            OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetDataByLocationsUID" 
            TypeName="internetsales.CustomerDataSetTableAdapters.ReasonsTableAdapter" 
            UpdateMethod="UpdateReason">
            <DeleteParameters>
                <asp:Parameter Name="Original_ID" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="LocationsUID" Type="String" />
                <asp:Parameter Name="Reason1" Type="String" />
            </InsertParameters>
            <SelectParameters>
                <asp:ControlParameter ControlID="CustDomains" Name="LocationsUID" 
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
            <UpdateParameters>
                <asp:Parameter Name="Reason1" Type="String" />
                <asp:Parameter Name="Original_ID" Type="Int32" />
            </UpdateParameters>
        </asp:ObjectDataSource>
    </td>
</tr>
<%--<tr>
<td>
<div style="display:block;text-align:left"><a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png?attredirects=0" imageanchor="1"><img src="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png" border="0"></a></div>
</td>
<td style="text-align:left;color:rgb(255,255,255);font-weight:bold"><font size="3">Master's Degree in IT<asp:TextBox 
        ID="txtInfo1" runat="server"></asp:TextBox>
    </font></td>
</tr>

<tr>
<td>
<div style="display:block;text-align:left"><a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png?attredirects=0" imageanchor="1"><img src="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png" border="0"></a></div>
</td>
<td style="text-align:left;color:rgb(255,255,255);font-weight:bold"><font size="3">A+ Certified<asp:TextBox 
        ID="txtInfo2" runat="server"></asp:TextBox>
    </font></td>
</tr>

<tr>
<td>
<div style="display:block;text-align:left"><a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png?attredirects=0" imageanchor="1"><img src="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png" border="0"></a></div>
</td>
<td style="text-align:left;color:rgb(255,255,255);font-weight:bold"><font size="3">Honest Quick Service<asp:TextBox 
        ID="txtInfo3" runat="server"></asp:TextBox>
    </font></td>
</tr>

<tr>
<td>
<div style="display:block;text-align:left"><a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png?attredirects=0" imageanchor="1"><img src="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png" border="0"></a></div>
</td>
<td style="text-align:left;color:rgb(255,255,255);font-weight:bold"><font size="3">$50 Per Hour<asp:TextBox 
        ID="txtInfo4" runat="server"></asp:TextBox>
    </font></td>
</tr>

<tr>
<td>
<div style="display:block;text-align:left"><a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png?attredirects=0" imageanchor="1"><img src="https://sites.google.com/site/computerrepairpalmcoastfl/home/bullet.png" border="0"></a></div>
</td>
<td style="text-align:left;color:rgb(255,255,255);font-weight:bold"><font size="3">I come to you!<asp:TextBox 
        ID="txtInfo5" runat="server"></asp:TextBox>
    </font></td>
<td style="text-align:left;color:rgb(255,255,255);font-weight:bold">
                
</td>
</tr>--%>
    <tr>
    <td colspan=2 style="text-align:left;color:rgb(255,255,255);font-weight:bold"><font size="3">Upload Main Image:<asp:FileUpload ID="FileUploadMain" runat="server" /><asp:Button ID="btnUpload" runat="server" Text="Upload"/></td>
    </tr>

</tbody>
</table>
</td>
</tr>
</tbody>
</table>
            
  </div>
  
<div style="background:rgb(255,255,255);padding:15px 5px 0px;width:860px;height:auto;text-align:justify;float:left">
     
<div style="margin:0px;padding:0px 10px 10px;border:1px solid rgb(0,0,0);width:442px;height:1245px; text-align:justify;font-size:12px;float:left">
<div style="display:block;text-align:left">
    <table>
    <tr>
        <td colspan=2>
            <asp:DetailsView ID="DetailsViewCoupon" runat="server" Height="50px" 
        Width="125px" AutoGenerateRows="False" DataKeyNames="ID" 
        DataSourceID="CouponObjectDataSource" 
        AllowPaging="True" AutoGenerateDeleteButton="True" 
        AutoGenerateEditButton="True" AutoGenerateInsertButton="True">
        <EmptyDataTemplate>
            <asp:Label ID="Label10" runat="server" Text="No Coupons Uploaded"></asp:Label><br /><br />
            <asp:LinkButton ID="LinkButtonUploadNewCoupon" runat="server" OnClick="LinkButtonUploadNewCoupon_Click">Upload New Coupon</asp:LinkButton>
        </EmptyDataTemplate>
                <Fields>                    
                    <asp:BoundField DataField="Headline" HeaderText="Headline" 
                        SortExpression="Headline" />
                    <asp:BoundField DataField="SubHeadline" HeaderText="SubHeadline" 
                        SortExpression="SubHeadline" />
                    <asp:BoundField DataField="Description" HeaderText="Description" 
                        SortExpression="Description" />
                    
                    <asp:TemplateField HeaderText="Color" SortExpression="Color">
                        <EditItemTemplate>
                            <asp:DropDownList ID="DrpColor" runat="server" SelectedValue='<%# Bind("Color") %>'>
                                <asp:ListItem></asp:ListItem>
                                <asp:ListItem>White</asp:ListItem>
                                <asp:ListItem>Black</asp:ListItem>
                                <asp:ListItem>Gray</asp:ListItem>
                                <asp:ListItem>Red</asp:ListItem>
                                <asp:ListItem>Green</asp:ListItem>
                                <asp:ListItem>Blue</asp:ListItem>
                                <asp:ListItem>Yellow</asp:ListItem>
                            </asp:DropDownList>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <asp:DropDownList ID="DrpColor" runat="server" SelectedValue='<%# Bind("Color") %>'>
                                <asp:ListItem></asp:ListItem>
                                <asp:ListItem>White</asp:ListItem>
                                <asp:ListItem>Black</asp:ListItem>
                                <asp:ListItem>Gray</asp:ListItem>
                                <asp:ListItem>Red</asp:ListItem>
                                <asp:ListItem>Green</asp:ListItem>
                                <asp:ListItem>Blue</asp:ListItem>
                                <asp:ListItem>Yellow</asp:ListItem>
                            </asp:DropDownList>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Color") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CheckBoxField DataField="Printable" HeaderText="Printable" 
                        SortExpression="Printable" />
                        <asp:TemplateField>
                <%--<EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("ImageLocation") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("ImageLocation") %>'></asp:TextBox>
                </InsertItemTemplate>--%>
                <EditItemTemplate>
                    <asp:FileUpload ID="FileUploadImageEdit" runat="server" />                    
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:FileUpload ID="FileUploadImageInsert" runat="server" />                                        
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Image") %>' Width=150px Height=150px/>
                     <asp:HiddenField ID="HiddenFieldImageLocation" runat="server" Value='<%# Eval("Image") %>' />
                </ItemTemplate>
                
            </asp:TemplateField>

                </Fields>
        
          <pagerstyle VerticalAlign="Bottom" />
        <PagerTemplate>
            <table width="100%">
              <tr>
                <td>
                  <asp:LinkButton id="PreviousButton"
                    text="<"
                    CommandName="Page"
                    CommandArgument="Prev"
                    runat="Server"/>
                  <asp:LinkButton id="NextButton"
                    text=">"
                    CommandName="Page"
                    CommandArgument="Next"
                    runat="Server"/> 
                </td>
                <td align="right">                
                  Coupon <asp:Label id="PageNumberLabel" runat="server" /> 
                  of <asp:Label id="TotalPagesLabel" runat="server" />                
                </td>
              </tr>
            </table>        
        </PagerTemplate>
        
    </asp:DetailsView>  
            <asp:ObjectDataSource ID="CouponObjectDataSource" runat="server" 
                OldValuesParameterFormatString="original_{0}" 
                SelectMethod="GetDataByLocationUID" 
                TypeName="internetsales.CustomerDataSetTableAdapters.CouponsTableAdapter" 
                DeleteMethod="Delete" InsertMethod="InsertNewCoupon" 
                UpdateMethod="UpdateCouponDetails">
                <DeleteParameters>
                    <asp:Parameter Name="Original_ID" Type="Int32" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="LocationsUID" Type="String" />
                    <asp:Parameter Name="Headline" Type="String" />
                    <asp:Parameter Name="SubHeadline" Type="String" />
                    <asp:Parameter Name="Description" Type="String" />
                    <asp:Parameter Name="Image" Type="String" />
                    <asp:Parameter Name="Color" Type="String" />
                    <asp:Parameter Name="Printable" Type="Boolean" />
                </InsertParameters>
                <SelectParameters>
                    <asp:ControlParameter ControlID="CustDomains" Name="LocationsUID" 
                        PropertyName="SelectedValue" Type="String" />
                </SelectParameters>
                <UpdateParameters>
                    <asp:Parameter Name="Headline" Type="String" />
                    <asp:Parameter Name="SubHeadline" Type="String" />
                    <asp:Parameter Name="Description" Type="String" />
                    <asp:Parameter Name="Image" Type="String" />
                    <asp:Parameter Name="Color" Type="String" />
                    <asp:Parameter Name="Printable" Type="Boolean" />
                    <asp:Parameter Name="Original_ID" Type="Int32" />
                </UpdateParameters>
            </asp:ObjectDataSource>
        </td>
    </tr>
    <%--<tr><td class="style1">
    <img alt="Computer Repair Coupons Palm Coast" 
        src="https://sites.google.com/site/computerrepairpalmcoastfl/home/coupons-palm-coast-computer-repair.gif" 
        border="0" style="height: 462px; width: 186px">
    </td>
    <td class="style3">
    
    <br />
        <asp:TextBox 
        ID="txtHeadline1" runat="server"></asp:TextBox>
        <asp:Label ID="Label1" runat="server" Text="Headline" BackColor="Yellow"></asp:Label>
       
    <br />
        <asp:TextBox 
        ID="txtSubHeadline1" runat="server"></asp:TextBox>
       <asp:Label ID="Label2" runat="server" Text="SubHeadline" BackColor="Yellow"></asp:Label>
    <br />
        <asp:TextBox 
        ID="txtDescription1" runat="server"></asp:TextBox>
     <asp:Label ID="Label4" runat="server" Text="Description" BackColor="Yellow"></asp:Label>
    <br />
        <asp:FileUpload ID="FileImage1" runat="server" />
        <br />
        <asp:CheckBox ID="chkprint1" runat="server" Text="Printable" />
    <br />
        <asp:DropDownList ID="DrpColor1" runat="server">
            <asp:ListItem>White</asp:ListItem>
            <asp:ListItem>Black</asp:ListItem>
            <asp:ListItem>Gray</asp:ListItem>
            <asp:ListItem>Red</asp:ListItem>
            <asp:ListItem>Green</asp:ListItem>
            <asp:ListItem>Blue</asp:ListItem>
            <asp:ListItem>Yellow</asp:ListItem>
        </asp:DropDownList>
    
    <br />
        <br />
        <asp:TextBox 
        ID="txtHeadline2" runat="server"></asp:TextBox>
        <asp:Label ID="Label3" runat="server" Text="Headline" BackColor="Yellow"></asp:Label>
       
    <br />
        <asp:TextBox 
        ID="txtSubHeadline2" runat="server"></asp:TextBox>
       <asp:Label ID="Label5" runat="server" Text="SubHeadline" BackColor="Yellow"></asp:Label>
    <br />
        <asp:TextBox 
        ID="txtDescription2" runat="server"></asp:TextBox>
     <asp:Label ID="Label6" runat="server" Text="Description" BackColor="Yellow"></asp:Label>
    <br />
        <asp:FileUpload ID="FileImage2" runat="server" />
        <br />
        <asp:CheckBox ID="chkprint2" runat="server" Text="Printable" />
    <br />
        <asp:DropDownList ID="DrpColor2" runat="server">
            <asp:ListItem>White</asp:ListItem>
            <asp:ListItem>Black</asp:ListItem>
            <asp:ListItem>Gray</asp:ListItem>
            <asp:ListItem>Red</asp:ListItem>
            <asp:ListItem>Green</asp:ListItem>
            <asp:ListItem>Blue</asp:ListItem>
            <asp:ListItem>Yellow</asp:ListItem>
        </asp:DropDownList>
    
    <br />
    <br />
        <asp:TextBox 
        ID="txtHeadline3" runat="server"></asp:TextBox>
        <asp:Label ID="Label7" runat="server" Text="Headline" BackColor="Yellow"></asp:Label>
       
    <br />
        <asp:TextBox 
        ID="txtSubHeadline3" runat="server"></asp:TextBox>
       <asp:Label ID="Label8" runat="server" Text="SubHeadline" BackColor="Yellow"></asp:Label>
    <br />
        <asp:TextBox 
        ID="txtDescription3" runat="server"></asp:TextBox>
     <asp:Label ID="Label9" runat="server" Text="Description" BackColor="Yellow"></asp:Label>
    <br />
        <asp:FileUpload ID="FileImage3" runat="server" />
        <br />
        <asp:CheckBox ID="chkprint3" runat="server" Text="Printable" />
    <br />
        <asp:DropDownList ID="DrpColor3" runat="server">
            <asp:ListItem>White</asp:ListItem>
            <asp:ListItem>Black</asp:ListItem>
            <asp:ListItem>Gray</asp:ListItem>
            <asp:ListItem>Red</asp:ListItem>
            <asp:ListItem>Green</asp:ListItem>
            <asp:ListItem>Blue</asp:ListItem>
            <asp:ListItem>Yellow</asp:ListItem>
        </asp:DropDownList>
    
    <br />
    <br />
    </td>
    </tr>--%>
    </table>
    Additional Location Info: 

        </div>
<font color="#000000">
</font>
Key Phrase:
<br />
 <asp:TextBox ID="txtKeyPhrase" runat="server" Width="200px"></asp:TextBox>
 <br />
 <br />
Page Description:
<br />
<br />
 <asp:TextBox ID="txtDescription" runat="server" Width="200px"></asp:TextBox>
 <br />
<br />
 Street:

 <asp:TextBox ID="txtStreet" runat="server" Width="200px"></asp:TextBox>
 <br />
<br />
 City:

 <asp:TextBox ID="txtCity" runat="server" Width="200px"></asp:TextBox>
 <br />
<br />
 State:

 <asp:TextBox ID="txtState" runat="server" Width="200px"></asp:TextBox>
 <br />
<br />
 Zip:

 <asp:TextBox ID="txtZip" runat="server" Width="200px"></asp:TextBox>
<br />
<br />
 Customer Website:

 <asp:TextBox ID="txtWebsite" runat="server" Width="200px"></asp:TextBox>
 <br />
<br />
 Company Name:

 <asp:TextBox ID="txtCompanyName" runat="server" Width="200px"></asp:TextBox>
 <br />
<br />
 Terms:

 <asp:TextBox ID="txtTerms" runat="server" Width="200px"></asp:TextBox>
 <br />
<br />
 Notes:

 <asp:TextBox ID="txtNotes" runat="server" Width="200px"></asp:TextBox>
        </div>
    
<div style="margin:0px 0px 10px 8px;width:382px;height:auto;font-size:12px;float:left">
   
<table style="border:1px solid rgb(0,0,0);float:left" border="0" cellpadding="5" cellspacing="0" width="370">
        
<tbody>
<tr>
<td colspan=2>
 <asp:DetailsView ID="DetailsViewImages" runat="server" Height="50px" 
        Width="125px" AutoGenerateRows="False" DataKeyNames="ID" 
        DataSourceID="ImagesObjectDataSource" 
        AllowPaging="True" AutoGenerateDeleteButton="True" 
        AutoGenerateEditButton="True" AutoGenerateInsertButton="True">
        <EmptyDataTemplate>
            <asp:Label ID="Label10" runat="server" Text="No Image Uploaded"></asp:Label><br /><br />
            <asp:LinkButton ID="LinkButtonUploadNewImage" runat="server" OnClick="LinkButtonUploadNewImage_Click">Upload New Image</asp:LinkButton>
        </EmptyDataTemplate>
        <Fields>
            <asp:TemplateField>
                <%--<EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("ImageLocation") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("ImageLocation") %>'></asp:TextBox>
                </InsertItemTemplate>--%>
                <EditItemTemplate>
                    <asp:FileUpload ID="FileUploadImageEdit" runat="server" />                    
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:FileUpload ID="FileUploadImageInsert" runat="server" />                                        
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImageLocation") %>' Width=150px Height=150px/>
                     <asp:HiddenField ID="HiddenFieldImageLocation" runat="server" Value='<%# Eval("ImageLocation") %>' />
                </ItemTemplate>
                
            </asp:TemplateField>
            <asp:TemplateField HeaderText="ImageData" SortExpression="ImageData">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ImageData") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ImageData") %>'></asp:TextBox>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("ImageData") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
           <%-- <asp:TemplateField HeaderText="ImageLocation" SortExpression="ImageLocation">
                <EditItemTemplate>
                    <asp:FileUpload ID="FileUploadImageEdit" runat="server" />                    
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:FileUpload ID="FileUploadImageInsert" runat="server" />                                        
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ImageLocation") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>--%>
        </Fields>
        
          <pagerstyle VerticalAlign="Bottom" />
        <PagerTemplate>
            <table width="100%">
              <tr>
                <td>
                  <asp:LinkButton id="PreviousButton"
                    text="<"
                    CommandName="Page"
                    CommandArgument="Prev"
                    runat="Server"/>
                  <asp:LinkButton id="NextButton"
                    text=">"
                    CommandName="Page"
                    CommandArgument="Next"
                    runat="Server"/> 
                </td>
                <td align="right">                
                  Image <asp:Label id="PageNumberLabel" runat="server" /> 
                  of <asp:Label id="TotalPagesLabel" runat="server" />                
                </td>
              </tr>
            </table>        
        </PagerTemplate>
        
    </asp:DetailsView>  
    <asp:ObjectDataSource ID="ImagesObjectDataSource" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="GetDataByLocationsUID" 
        TypeName="internetsales.CustomerDataSetTableAdapters.ImagesTableAdapter" 
        DeleteMethod="Delete" InsertMethod="InsertNewImage" 
        UpdateMethod="UpdateImageDetails">
        <DeleteParameters>
            <asp:Parameter Name="Original_ID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="LocationsUID" Type="String" />
            <asp:Parameter Name="ImageData" Type="String" />
            <asp:Parameter Name="ImageLocation" Type="String" />
        </InsertParameters>
        <SelectParameters>
            <asp:ControlParameter ControlID="CustDomains" Name="LocationsUID" 
                PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
        <UpdateParameters>
            <asp:Parameter Name="ImageLocation" Type="String" />
            <asp:Parameter Name="ImageData" Type="String" />
            <asp:Parameter Name="Original_ID" Type="Int32" />
        </UpdateParameters>
    </asp:ObjectDataSource>
</td></tr>
    
<%--<tr>

<td class="style2">
<a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg?attredirects=0" imageanchor="1"><img alt="Hard Drive Repair" src="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg" border="0"></a>
</td>
<td class="style2">
<b>Hard drivesle2">
<b>Hard drives</b> don't last forever and have to be replaced.&nbsp; Most of the time pictures and files can be salvaged.<br>
    <asp:TextBox ID="txtImage1Data" runat="server" TextMode="MultiLine" Rows="6"></asp:TextBox>
    <asp:FileUpload ID="FileUpload1" runat="server" />
</td>
           
</tr>
              
<tr>

<td class="style2">
<a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg?attredirects=0" imageanchor="1"><img alt="Hard Drive Repair" src="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg" border="0"></a>
</td>
<td class="style2">
<b>Hard drives</b> don't last forever and have to be replaced.&nbsp; Most of the time pictures and files can be salvaged.<br>
    <asp:TextBox ID="txtImage2Data" runat="server" TextMode="MultiLine" Rows="6"></asp:TextBox>
    <asp:FileUpload ID="FileUpload2" runat="server" />
</td>
           
</tr>
          
<tr>

<td class="style2">
<a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg?attredirects=0" imageanchor="1"><img alt="Hard Drive Repair" src="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg" border="0"></a>
</td>
<td class="style2">
<b>Hard drives</b> don't last forever and have to be replaced.&nbsp; Most of the time pictures and files can be salvaged.<br>
    <asp:TextBox ID="txtImage3Data" runat="server" TextMode="MultiLine" Rows="6"></asp:TextBox>
    <asp:FileUpload ID="FileUpload3" runat="server" />
</td>
           
</tr>
          
<tr>

<td class="style2">
<a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg?attredirects=0" imageanchor="1"><img alt="Hard Drive Repair" src="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg" border="0"></a>
</td>
<td class="style2">
<b>Hard drives</b> don't last forever and have to be replaced.&nbsp; Most of the time pictures and files can be salvaged.<br>
    <asp:TextBox ID="txtImage4Data" runat="server" TextMode="MultiLine" Rows="6"></asp:TextBox>
    <asp:FileUpload ID="FileUpload4" runat="server" />
</td>
           
</tr>--%>
       
</tbody>
</table>
      
<div style="margin:0px 0px 10px 8px;width:382px;height:auto;font-size:12px;float:left">
      
<%--<table style="border:1px solid rgb(0,0,0);float:left" border="0" cellpadding="5" cellspacing="0" width="370">
        
<tbody>
<tr>

<td style="width:150px">
<a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg?attredirects=0" imageanchor="1"><img alt="Hard Drive Repair" src="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg" border="0"></a>
</td>
<td style="width:150px">
<b>Hard drives</b> don't last forever and have to be replaced.&nbsp; Most of the time pictures and files can be salvaged.<br>
    <<asp:TextBox ID="txtImage5Data" runat="server" TextMode="MultiLine" 
        Rows="6"></asp:TextBox>
    <asp:FileUpload ID="FileUpload5" runat="server" />
</td>
           
</tr>
        
    
          
<tr>

<td style="width:150px">
<a href="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg?attredirects=0" imageanchor="1"><img alt="Hard Drive Repair" src="https://sites.google.com/site/computerrepairpalmcoastfl/home/hard-drive-repair.jpg" border="0"></a>
</td>
<td style="width:150px">
<b>Hard drives</b> don't last forever and have to be replaced.&nbsp; Most of the time pictures and files can be salvaged.<br>
    <asp:TextBox ID="txtImage6Data" runat="server" TextMode="MultiLine" Rows="6"></asp:TextBox>
    <asp:FileUpload ID="FileUpload6" runat="server" />
</td>
           
</tr>
          
      
</tbody>
</table>--%>
</div>
         
        
      
              
    
 </div>
         
   
    
         
   
  </div>
    <asp:Button ID="btnSave" runat="server" Font-Bold="True" Font-Size="Large" 
        ForeColor="Red" Height="35px" Text="Save New Location" Width="249px" />
    
</div>
</asp:Panel>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btnSave" />
<asp:PostBackTrigger ControlID="DetailsViewImages" />
<asp:PostBackTrigger ControlID="DetailsViewCoupon" />
            <asp:PostBackTrigger ControlID="btnUpload" />
        </Triggers>
    </asp:UpdatePanel>
        </asp:Content>
